<T:ViewBase x:Class="WPFExcelReport.TFSGROE02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGGROE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGGROE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGABEZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGABEZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=FSGLAENGE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwFSGROE.FSGLAENGE}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsFSGROE,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwFSGROE}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwFSGROE, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="FSGMANDANT"
                                    Binding="{Binding Path=FSGMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGART"
                                    Binding="{Binding Path=FSGART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGVAR"
                                    Binding="{Binding Path=FSGVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGGROE"
                                    Binding="{Binding Path=FSGGROE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGGROE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGAENZL"
                                    Binding="{Binding Path=FSGAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGAENB"
                                    Binding="{Binding Path=FSGAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGAEND"
                                    Binding="{Binding Path=FSGAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGNEUB"
                                    Binding="{Binding Path=FSGNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGNEUD"
                                    Binding="{Binding Path=FSGNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGABEZ"
                                    Binding="{Binding Path=FSGABEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGABEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGLAENGE"
                                    Binding="{Binding Path=FSGLAENGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGLAENGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGLAEME"
                                    Binding="{Binding Path=FSGLAEME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGLAEME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGLAEGRP"
                                    Binding="{Binding Path=FSGLAEGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGLAEGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGLAEFKT"
                                    Binding="{Binding Path=FSGLAEFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGLAEFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGBREITE"
                                    Binding="{Binding Path=FSGBREITE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGBREITE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGBRTME"
                                    Binding="{Binding Path=FSGBRTME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGBRTME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGBRTGRP"
                                    Binding="{Binding Path=FSGBRTGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGBRTGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGBRTFKT"
                                    Binding="{Binding Path=FSGBRTFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGBRTFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGHOEHE"
                                    Binding="{Binding Path=FSGHOEHE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGHOEHE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGHOEME"
                                    Binding="{Binding Path=FSGHOEME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGHOEME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGHOEGRP"
                                    Binding="{Binding Path=FSGHOEGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGHOEGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGHOEFKT"
                                    Binding="{Binding Path=FSGHOEFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGHOEFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGGEW"
                                    Binding="{Binding Path=FSGGEW, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGGEW}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGGEWME"
                                    Binding="{Binding Path=FSGGEWME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGGEWME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGGEWGRP"
                                    Binding="{Binding Path=FSGGEWGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGGEWGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGGEWFKT"
                                    Binding="{Binding Path=FSGGEWFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGGEWFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGMEGME"
                                    Binding="{Binding Path=FSGMEGME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGMEGME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGMEGGRP"
                                    Binding="{Binding Path=FSGMEGGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGMEGGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGMEGFKT"
                                    Binding="{Binding Path=FSGMEGFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGMEGFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGVOL"
                                    Binding="{Binding Path=FSGVOL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGVOL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGPRGRP"
                                    Binding="{Binding Path=FSGPRGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGPRGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGGRLAUF"
                                    Binding="{Binding Path=FSGGRLAUF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGGRLAUF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGZSFORM"
                                    Binding="{Binding Path=FSGZSFORM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGZSFORM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGARTKZ"
                                    Binding="{Binding Path=FSGARTKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGARTKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="FSGFILLER"
                                    Binding="{Binding Path=FSGFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=FSGFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
